package com.job.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 岗位实体类
 * @author hasee
 */
@Entity()
@Table()
public class Job {
    /**
     * 工作id
     */
    private int jobId;
    /**
     * 发布者id
     */
    private int jobEmployerId;
    /**
     * 岗位标题
     */
    private String jobTitle;
    /**
     * 岗位简介
     */
    private String jobTro;
    /**
     * 工作地点
     */
    private String jobAddress;
    /**
     * 工作城市id
     */
    private String cityId;
    /**
     * 薪资
     */
    private String jobPay;
    /**
     * 岗位id
     */
    private int professionId;
    /**
     * 联系email
     */
    private String touchEmail;
    /**
     * 联系电话
     */
    private String touchPhone;
    /**
     * 工作详细介绍
     */
    private String jobPresentation;

    @Id
    @GeneratedValue(generator="increment")
    @GenericGenerator(name="increment", strategy = "increment")
    public int getJobId() {
        return jobId;
    }

    public void setJobId(int jobId) {
        this.jobId = jobId;
    }

    public int getJobEmployerId() {
        return jobEmployerId;
    }

    public void setJobEmployerId(int jobEmployerId) {
        this.jobEmployerId = jobEmployerId;
    }

    public String getJobTitle() {
        return jobTitle;
    }

    public void setJobTitle(String jobTitle) {
        this.jobTitle = jobTitle;
    }

    public String getJobTro() {
        return jobTro;
    }

    public void setJobTro(String jobTro) {
        this.jobTro = jobTro;
    }

    public String getJobAddress() {
        return jobAddress;
    }

    public void setJobAddress(String jobAddress) {
        this.jobAddress = jobAddress;
    }

    public String getJobPay() {
        return jobPay;
    }

    public void setJobPay(String jobPay) {
        this.jobPay = jobPay;
    }

    public int getProfessionId() {
        return professionId;
    }

    public void setProfessionId(int professionId) {
        this.professionId = professionId;
    }

    public String getTouchEmail() {
        return touchEmail;
    }

    public void setTouchEmail(String touchEmail) {
        this.touchEmail = touchEmail;
    }

    public String getTouchPhone() {
        return touchPhone;
    }

    public void setTouchPhone(String touchPhone) {
        this.touchPhone = touchPhone;
    }

    public String getJobPresentation() {
        return jobPresentation;
    }

    public void setJobPresentation(String jobPresentation) {
        this.jobPresentation = jobPresentation;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }
}
